/**
 * Copyright (c) 2009-2011, chunquedong(YangJiandong)
 * 
 * This file is part of ChunMap project
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE(Version >=3)
 * 
 * History:
 *     2010-05-05  Jed Young  Creation
 */
package chunmap.model.crs;

/**
 * 坐标参考系统
 * @author chunquedong
 * 
 */
public class CoordinateRSystem {
	private String name;
	private int srid;
	private Datum datum;
	private Spheroid spheroid;
	private Projection projection;
	private int unit;

	//java 的垃圾
	public String getName() {return name;}
	public void setName(String name) {this.name = name;}

	public int getSrid() {return srid;}
	public void setSrid(int srid) {	this.srid = srid;}

	public Datum getDatum() {	return datum;}
	public void setDatum(Datum datum) {this.datum = datum;}

	public Spheroid getSpheroid() {return spheroid;}
	public void setSpheroid(Spheroid spheroid) {this.spheroid = spheroid;}

	public Projection getProjection() {return projection;}
	public void setProjection(Projection projection) {this.projection = projection;}

	public int getUnit() {return unit;}
	public void setUnit(int unit) {this.unit = unit;}

	// ------------------------------------------------------------
	public static final CoordinateRSystem Wgs84=createWgs84();
	public static final CoordinateRSystem Unknow=new CoordinateRSystem();

	private static CoordinateRSystem createWgs84() {
		CoordinateRSystem cs = new CoordinateRSystem();
		cs.srid = 4326;
		cs.name="WGS84";
		return cs;
	}
}